import { HttpStatusCode } from 'solid-start/server';
import { Description, Property, Title } from '/components';
import { isQwik } from '/contexts';
Creates a transformation functions that removes the leading and trailing white space and line terminator characters from a string.
const transform = toTrimmed(options);
options
on
<Property {...properties.on} />
transform
<Property {...properties[isQwik() ? 'qwik' : 'solidPreactOrReact'].transform} />
export const properties = { on: { type: [ { type: 'string', value: 'input' }, { type: 'string', value: 'change' }, { type: 'string', value: 'blur' }, ], }, solidPreactOrReact: { transform: { type: { type: 'custom', name: 'TransformField', href: '../TransformField', }, }, }, qwik: { transform: { type: { type: 'custom', name: 'QRL', generics: [ { type: 'custom', name: 'TransformField', href: '../TransformField', }, ], }, }, }, };